package com.guass.nettyprotostuff.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author guass
 * @date 2022年03月09日 16:14
 */
@Component
@Data
@ConfigurationProperties(prefix = "host.info")
public class ServerProperties {
    private String ip;
    private int rpcPort;

    private int rpcIdleTimeout;

    private int ringBufferSize;

    private int ringSleepTime;

    private int ringDoCount;

    private int consumerCount;

    private boolean useZkConnect;

    //0:正常模式 1:服务器测试模式  2:客户端测试模式
    private int mode;

    /**
     * 批量测试客户端个数
     */
    private int testClientNum;

    private int testStartPort;

    private int testEndPort;

    private String mqProducerGroup;
    private String mqNameSrvAddr;
    private String mqTopic;
    private String mqTag;

    //0: redis 1:roketmq
    private int mqMode = 0;
}
